package Demo24;

public class Convert {
    public static void main(String[] args) {
        float sswd=0,hswd=0;
        try{
            sswd=Float.parseFloat(args[0]);
            hswd=Float.parseFloat(args[0]);
        }catch (Exception e){
            System.out.println("数据下标越界");
        }
//        hswd=9*sswd/5-32;
        sswd=5/9*(hswd-32);
        System.out.println("华氏温度："+hswd);
    }
}
